package com.basin.micro.admin.module.employee.pojo.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 */
@Getter
public enum EmployeeStatEnum {
    EMPLOYEE_STATUS_LEAVE("离职", 0),
    EMPLOYEE_STATUS_NORMAL("在职", 1),
    EMPLOYEE_STATUS_FIRE("辞退", 2),
    EMPLOYEE_STATUS_RETIRE("退休", 3),
    EMPLOYEE_STATUS_BLOCK("封禁", 4),
    ;
    @JsonValue
    private final String explanation;
    @EnumValue
    private final Integer stat;

    @JsonCreator
    EmployeeStatEnum(String explanation, Integer stat) {
        this.explanation = explanation;
        this.stat = stat;
    }
}
